package com.maolong.entity.enumm;
import com.baomidou.mybatisplus.annotation.IEnum;

public enum SexEnum implements IEnum<Integer> {
    MAN(1, "男"),
    WOMAN(2, "女");
    private Integer code;
    private String desc;
    SexEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String toString(){
        return this.desc;
    }

    @Override
    public Integer getValue() {
        return code;
    }
}
